package ch7;

public class CaculatorTest {

	public static void main(String[] args) {

		Caculator c = new Caculator();
		int a = 0;
		int b = 23;

		try {
			int s1 = c.divide(a, b);
			System.out.println("结果是：" + s1);
		} catch (Exception e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}

		a = 15;
		b = 0;

		try {
			int s2 = c.divide(a, b);
			System.out.println("结果是：" + s2);
		} catch (Exception e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}
		System.out.println("over!!!!");
	}

}
